﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FlashPay.Entity
{
    public class PermissionHelper
    {
        public class PermissionExtApiViewModel
        {
            public PermissionExtApiViewModel()
            {
                CanTransfer = false;
                CanPayment = false;
                CanDeposit = false;
                CanTransferAdd = false;
                CanPaymentAdd = false;
                CanDepositAdd = false;
                BalanceView = false;
            }
            public bool CanTransfer { set; get; }     //公司推送接口_中转_查看
            public bool CanPayment { set; get; }      //公司推送接口_付款_查看
            public bool CanDeposit { set; get; }      //公司推送接口_存款_查看
            public bool CanTransferAdd { set; get; }  //公司推送密钥_中转_新增
            public bool CanPaymentAdd { set; get; }   //公司推送密钥_付款_新增
            public bool CanDepositAdd { set; get; }   //公司推送密钥_存款_新增
            public bool BalanceView { set; get; }   //公司推送密钥_存款_新增
        }


        public class PermissionCommon
        {
            public PermissionCommon()
            {
                CanAdd = false;
                CanEdit = false;
                CanDisable = false;
                CanDelete = false;
                BalanceView = false;
            }

            /// <summary>
            /// 新增
            /// </summary>
            public Boolean CanAdd { set; get; }

            /// <summary>
            /// 编辑
            /// </summary>
            public Boolean CanEdit { set; get; }

            /// <summary>
            /// 禁用
            /// </summary>
            public Boolean CanDisable { set; get; }

            /// <summary>
            /// 删除
            /// </summary>
            public Boolean CanDelete { set; get; }

            /// <summary>
            /// 查看
            /// </summary>
            public Boolean CanView { set; get; }

            public Boolean BalanceView { set; get; }   //公司推送密钥_存款_新增
        }
    }
}
